import request from '@/utils/request'
// export const getRoles = data => request.get('/sys/role', data)
export const getRoles = params => request.get('/sys/role', { params })
export const addRoles = data => request.post('/sys/role', data)
export const editRoles = data => request.put(`/sys/role/${data.id}`, data)
export const delRoles = id => request.delete(`/sys/role/${id}`)
export const getRolesDetail = id => request.get(`/sys/role/${id}`)
export const getEnabledRoles = () => request.get('/sys/role/list/enabled')
export const assignPermission = data => request.put('/sys/role/assignPrem', data)
